<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <textarea>可以写文本内容</textarea>
    <input type="checkbox" name="" id="aa" value="男" />
    <button>点我啊</button>
    <script>
      let ta = document.querySelector('textarea')
      let aa = document.querySelector('#aa')
      let button = document.querySelector('button')
      button.addEventListener('click', function() {
        // console.log(ta.innerText) // 不可以
        // console.log(ta.innerHTML) // 可以，但是只能获取默认值
        // console.log(ta.value)
        // console.log(aa.checked)
        // ta.innerText = 'aaaa'
        // ta.innerHTML = 'aaaa'
        ta.value = 'aaaa'
      })
    </script>
  </body>
</html>
